package com.dys.ai.controller;

import com.dys.ai.common.api.ResponseEntity;
import com.dys.ai.service.TrainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TrainController {

    @Autowired
    private TrainService trainService;

    @GetMapping(value = "/listTrainInfo")
    public ResponseEntity listTrainInfo() {
        return trainService.listTrains();
    }
}
